<pre>
<?php
$time_start = microtime(true);

require "app/ams.php";
AMS::app(1);
//var_dump(AMS::getBaseDir());
$db = AMS::getSingleton('core/db');

//$mdl = AMS::getModel('core/db_model');
//$mdl->setData(array('name'=>'aaaaaaaaaa', 'type'=>'bbbbbb'));
//$mdl->save();
//$m = AMS::getModel('core/core_tree');
//$m->addItem(AMS::getModel('core/template'), '/var/tmp/sql/add_aa');
//var_dump($m->getItems('/var/tmp/sql/add_aa'));
?>



Completed in <?=(microtime(true)-$time_start)?> seconds